[T4Scaffolding.Scaffolder(Description = "Allows you to modify the T4 template rendered by a scaffolder")][CmdletBinding()]
param(     
	[string]$Service,
    [string]$Project,
    [string]$CodeLanguage,
	[switch]$Force = $false
)

$defaultNamespace = (Get-Project $Project).Properties.Item("DefaultNamespace").Value
$templateFile = Find-ScaffolderTemplate Client -TemplateFolders $TemplateFolders -Project $Project -CodeLanguage $CodeLanguage -ErrorIfNotFound
$outputPath = $Service + "Client"

$wroteFile = Invoke-ScaffoldTemplate -Template $templateFile -Model @{ 
	DefaultNamespace = $defaultNamespace;
	Service = $Service;
} -Project $Project -OutputPath $outputPath -Force:$Force

